import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

public class TriangleText {
    @Test
    @DisplayName("输入错误")
    void parameters_error_test() {
        Triangle triangle = new Triangle();
        String type = triangle.classify(0,4,5);
        Assertions.assertEquals("输入错误",type);
    }
    @Test
    @DisplayName("非三角形")
    void No_triangle() {
        Triangle triangle = new Triangle();
        String type = triangle.classify(2,2,5);
        Assertions.assertEquals("非三角形",type);
    }
    @Test
    @DisplayName("等边三角形")
    void equilateral_triangle() {
        Triangle triangle = new Triangle();
        String type = triangle.classify(4,4,4);
        Assertions.assertEquals("等边三角形",type);
    }
    @Test
    @DisplayName("等腰三角形")
    void isosceles_triangle() {
        Triangle triangle = new Triangle();
        String type = triangle.classify(4,4,5);
        Assertions.assertEquals("等腰三角形",type);
    }
    @Test
    @DisplayName("一般三角形")
    void general_triangle() {
        Triangle triangle = new Triangle();
        String type = triangle.classify(3,4,5);
        Assertions.assertEquals("一般三角形",type);
    }

}
